package br.unicamp.ic.lis.docseaservice.resource;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * Example resource class hosted at the URI path "/ping"
 */
@Path("/ping")
public class PingResource {

	public static final String PING_RESPONSE_MESSAGE = "pong";

	/**
	 * Method processing HTTP GET requests, producing "text/plain" MIME media
	 * type.
	 * 
	 * @return String that will be send back as a response of type "text/plain".
	 */
	@GET
	@Produces("text/plain")
	public String get() {
		return PING_RESPONSE_MESSAGE;
	}
}
